It's the native's job to request a 1px x 1px size, not the job of
gtk_widget_size_allocate()
Also saves 10% of size_allocate() time because checking for an interface
is really expensive.
adjusted.height = 0;
}
- if (G_UNLIKELY (GTK_IS_NATIVE (widget)))
- {
- adjusted.width = MAX (1, adjusted.width);
- adjusted.height = MAX (1, adjusted.height);
- }
-
style = gtk_css_node_get_style (priv->cssnode);
get_box_margin (style, &margin);
get_box_border (style, &border);